package org.linlinjava.litemall.admin.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @Author dengmin
 * @Created 2021/1/28 20:33
 */
public class AuthToken extends UsernamePasswordToken {
    private static final long serialVersionUID = 1L;
    private String token;

    public AuthToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }

}
